import { request } from './request';

// 获取行业列表
export function getIndustryList(page) {
    return request({
        url: "/api/boss/industry/getIndustryList?page="+page,
        method: 'post'
    })
}

// 新增行业信息 
export function getAddIndustry(data) {
    return request({
        url: "/api/boss/industry/addIndustry",
        method: 'post',
        data
    })
}

// 删除行业信息 /api/boss/industry/deleteIndustry/{id}
export function DeleteIndustry(id) {
    return request({
        url: "/api/boss/industry/deleteIndustry/" + id,
        method: "delete"
    })
}

// 更新行业信息 /api/boss/industry/updateIndustry
export function UpdateIndustry(data) {
    return request({
        url: "/api/boss/industry/updateIndustry",
        method: 'post',
        data
    })
}